package adapter_pattern.v2;

public class Client {
    public static void main(String[] args) {
        // 创建前锋
        Player b = new Forwards("巴蒂尔");
        // 创建后卫
        Player m = new Guards("麦克格雷迪");
        // 创建中锋
        Player ym = new Translator("姚明");
        b.attack();
        b.defense();
        m.attack();
        m.defense();
        ym.attack();
        ym.defense();
    }
}
